import Vue from 'vue'
import Vuex from 'vuex'
import user from './system/user'
import login from './system/login'
import dict from './system/dict'
import employee from './system/employee'
import role from './system/role'
import hospital from './system/hospital'
import dept from './system/dept'
import resource from './system/resource'
import dictType from './system/dict-type'
import userLog from './system/user-log'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user,
    login,
    dict,
    employee,
    role,
    hospital,
    dept,
    resource,
    dictType,
    userLog
  }
})

export default store
